welo git mirrors
Commit 739fdd387e0bfc2abe26bd715683052e4d1b821d
Parents : f3517d2
Author : Mark Qvist <bc7291552be7a58f361522990465165c>
Signature : T66BB85Valid, signed by author
Date : 2026-05-28T23:26:59+02:00
Fixed known destinations persist regression on windows
Changes
Diff
diff --git a/RNS/Identity.py b/RNS/Identity.py
index 941565fcc..e519abad8 100644
--- a/RNS/Identity.py
+++ b/RNS/Identity.py
@@ -218,7 +218,7 @@ class Identity:
try:
with open(temp_file,"wb") as file: umsgpack.dump(Identity.known_destinations.copy(), file)
- os.rename(temp_file, RNS.Reticulum.storagepath+f"/known_destinations")
+ os.replace(temp_file, RNS.Reticulum.storagepath+f"/known_destinations")
except Exception as e:
RNS.log(f"Error while serializing and writing known destinations: {e}", RNS.LOG_ERROR)
Served by rngit 1.4.2 - Generated in 0.05s